USE [QLDL]
GO

/****** Object:  Table [dbo].[DOANHSO]    Script Date: 01/03/2011 15:19:38 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[DOANHSO](
	[Thang] [int] NULL,
	[Nam] [int] NULL,
	[MaDaiLy] [nvarchar](10) NULL,
	[SoLuongPXH] [int] NULL,
	[TongTriGia] [money] NULL,
	[TyLe] [float] NULL
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[DOANHSO]  WITH CHECK ADD  CONSTRAINT [FK_DOANHSO_MaDaiLy] FOREIGN KEY([MaDaiLy])
REFERENCES [dbo].[DAILY] ([MaDaiLy])
ON DELETE CASCADE
GO

ALTER TABLE [dbo].[DOANHSO] CHECK CONSTRAINT [FK_DOANHSO_MaDaiLy]
GO


